package org.example.aienglishapp.mapper.progress;

import org.apache.ibatis.annotations.Mapper;
import org.example.aienglishapp.entity.progress.DailyGoal;

import java.util.List;

@Mapper
public interface DailyGoalMapper {

    // 根据用户 ID 查询目标
    List<DailyGoal> findGoalsByUserId(Long userId);

    // 添加目标
    void addGoal(DailyGoal dailyGoal);

    // 更新目标
    void updateGoal(DailyGoal dailyGoal);

    // 删除目标
    void deleteGoal(Long id);
}